using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NBusiness.Data.Testing.Properties;

namespace NBusiness.ESharp.Testing
{
    [TestClass]
    public class ConfigTest
    {
        [TestMethod]
        public void TestAdvancedConfig()
        {
            string xml = Resources.ConfigTest;
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(xml);

            //Settings settings = new Settings();
            //settings.Create(null, null, doc.ChildNodes[0]);

//<NBusiness AuthorizeDefault="false" AccessDefault="true" >
//    <Assemblies>
//        <Add Assembly="NBusiness.Test" Provider="NBusiness.Providers.SqlDatabaseProvider, NBusiness" AuthorizeDefault="true" />
//        <Add Assembly="NBusiness" AccessDefault="true" />
//    </Assemblies>
//    <Types>
//        <Add Type="NBusiness.Test.ConfigTest" Provider="NBusiness.Test.MockDatabaseProvider, NBusiness.Test" />
//    </Types>
//</NBusiness>

            //Assert.AreEqual(
            //    "LocalSqlServer",
            //    (string)settings.GetSetting(SettingsType.ConnectionStringName, this.GetType()));
        }
    }
}
